<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struct template counted_time_rep</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../date_time/doxy.html#doxygen.date_time_reference.time__system__counted_8hpp" title="Header &lt;boost/date_time/time_system_counted.hpp&gt;">
<link rel="prev" href="structboost_1_1date__time_1_1time__resolution__traits__bi64__impl.html" title="Struct time_resolution_traits_bi64_impl">
<link rel="next" href="classboost_1_1date__time_1_1counted__time__system.html" title="Class template counted_time_system">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1date__time_1_1time__resolution__traits__bi64__impl.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#doxygen.date_time_reference.time__system__counted_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="classboost_1_1date__time_1_1counted__time__system.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct template counted_time_rep</span></h2>
<p>boost::date_time::counted_time_rep — Time representation that uses a single integer count. </p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../date_time/doxy.html#doxygen.date_time_reference.time__system__counted_8hpp" title="Header &lt;boost/date_time/time_system_counted.hpp&gt;">boost/date_time/time_system_counted.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> config<span class="special">&gt;</span> 
<span class="keyword">struct</span> <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html" title="Struct template counted_time_rep">counted_time_rep</a> <span class="special">{</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">config</span><span class="special">::</span><span class="identifier">int_type</span>           <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1aab3441c2da74a13d6e8503fd3ea7da5e"></a><span class="identifier">int_type</span><span class="special">;</span>          
  <span class="keyword">typedef</span> <span class="identifier">config</span><span class="special">::</span><span class="identifier">date_type</span>          <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1af747fb929c25d14382566e4ddfaee56e"></a><span class="identifier">date_type</span><span class="special">;</span>         
  <span class="keyword">typedef</span> <span class="identifier">config</span><span class="special">::</span><span class="identifier">impl_type</span>          <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1ac517b855b6c9f3a27be962c5c39d1899"></a><span class="identifier">impl_type</span><span class="special">;</span>         
  <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">duration_type</span>   <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1acfb0a8dd946bd313cb3b1b5f48f3053d"></a><span class="identifier">date_duration_type</span><span class="special">;</span>
  <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">calendar_type</span>   <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a5c288deeddce2b1b3017f3a59185caee"></a><span class="identifier">calendar_type</span><span class="special">;</span>     
  <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">ymd_type</span>        <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a6d8e8252c532c1418231ade3fa4158f2"></a><span class="identifier">ymd_type</span><span class="special">;</span>          
  <span class="keyword">typedef</span> <span class="identifier">config</span><span class="special">::</span><span class="identifier">time_duration_type</span> <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a2ea3eb25dd1e6ce5fe21505b92751542"></a><span class="identifier">time_duration_type</span><span class="special">;</span>
  <span class="keyword">typedef</span> <span class="identifier">config</span><span class="special">::</span><span class="identifier">resolution_traits</span>  <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1afa6289b2af9c8848fae21b1ff2843f01"></a><span class="identifier">resolution_traits</span><span class="special">;</span> 

  <span class="comment">// <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#id-1_3_11_15_3_54_1_1_1_11-bb">public member functions</a></span>
  <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a1d29f25a2905922531ef12bb9345b565"><span class="identifier">counted_time_rep</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">date_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_duration_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a0e033218071e28313132287a1050b5fd"><span class="identifier">counted_time_rep</span></a><span class="special">(</span><span class="identifier">int_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a12b6ef2c6847399f56abacc27ecfdf30"><span class="identifier">counted_time_rep</span></a><span class="special">(</span><span class="identifier">impl_type</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">date_type</span> <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1aea4ed3b0f0b23690a4c0441686ec292a"><span class="identifier">date</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">unsigned</span> <span class="keyword">long</span> <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a7951ee4bfd1d1fc50d082eebfdd395ef"><span class="identifier">day_count</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">int_type</span> <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1ae5717d575f9c9cf0f762dbda40f564ff"><span class="identifier">time_count</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">int_type</span> <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a5f1b303b330dd1e6835faf0b9015797e"><span class="identifier">tod</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">bool</span> <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1ac3d6b6c28ac99f2b94acfdf2dc30ac2c"><span class="identifier">is_pos_infinity</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">bool</span> <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1af8fda3860006626e408c8cd00cf93dc5"><span class="identifier">is_neg_infinity</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">bool</span> <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a7bf579a308568764f5ea42e05f07e7da"><span class="identifier">is_not_a_date_time</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">bool</span> <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a4c62bcfce5a91f86aee55ec6ada0e624"><span class="identifier">is_special</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">impl_type</span> <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a6bf2e96fc0b6c306c43040aac05f9d0f"><span class="identifier">get_rep</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#id-1_3_11_15_3_54_1_1_1_12-bb">public static functions</a></span>
  <span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">int_type</span> <a class="link" href="structboost_1_1date__time_1_1counted__time__rep.html#doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1afd5f847150615b1e50a5bc6ba33c3ffe"><span class="identifier">frac_sec_per_day</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.11.15.3.53.3.4"></a><h2>Description</h2>
<div class="refsect2">
<a name="id-1.3.11.15.3.53.3.4.2"></a><h3>
<a name="id-1_3_11_15_3_54_1_1_1_11-bb"></a><code class="computeroutput">counted_time_rep</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a1d29f25a2905922531ef12bb9345b565"></a><span class="identifier">counted_time_rep</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">date_type</span> <span class="special">&amp;</span> d<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">time_duration_type</span> <span class="special">&amp;</span> time_of_day<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a0e033218071e28313132287a1050b5fd"></a><span class="identifier">counted_time_rep</span><span class="special">(</span><span class="identifier">int_type</span> count<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a12b6ef2c6847399f56abacc27ecfdf30"></a><span class="identifier">counted_time_rep</span><span class="special">(</span><span class="identifier">impl_type</span> count<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">date_type</span> <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1aea4ed3b0f0b23690a4c0441686ec292a"></a><span class="identifier">date</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">unsigned</span> <span class="keyword">long</span> <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a7951ee4bfd1d1fc50d082eebfdd395ef"></a><span class="identifier">day_count</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">int_type</span> <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1ae5717d575f9c9cf0f762dbda40f564ff"></a><span class="identifier">time_count</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">int_type</span> <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a5f1b303b330dd1e6835faf0b9015797e"></a><span class="identifier">tod</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">bool</span> <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1ac3d6b6c28ac99f2b94acfdf2dc30ac2c"></a><span class="identifier">is_pos_infinity</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">bool</span> <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1af8fda3860006626e408c8cd00cf93dc5"></a><span class="identifier">is_neg_infinity</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">bool</span> <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a7bf579a308568764f5ea42e05f07e7da"></a><span class="identifier">is_not_a_date_time</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="keyword">bool</span> <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a4c62bcfce5a91f86aee55ec6ada0e624"></a><span class="identifier">is_special</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">impl_type</span> <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1a6bf2e96fc0b6c306c43040aac05f9d0f"></a><span class="identifier">get_rep</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.11.15.3.53.3.4.3"></a><h3>
<a name="id-1_3_11_15_3_54_1_1_1_12-bb"></a><code class="computeroutput">counted_time_rep</code> public static functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">BOOST_CXX14_CONSTEXPR</span> <span class="identifier">int_type</span> <a name="doxygen.date_time_reference.structboost_1_1date__time_1_1counted__time__rep_1afd5f847150615b1e50a5bc6ba33c3ffe"></a><span class="identifier">frac_sec_per_day</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2001-2005 CrystalClear Software, Inc<p>Subject to the Boost Software License, Version 1.0. (See accompanying file
    <code class="filename">LICENSE_1_0.txt</code> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1date__time_1_1time__resolution__traits__bi64__impl.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#doxygen.date_time_reference.time__system__counted_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="classboost_1_1date__time_1_1counted__time__system.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
